<?php

namespace app\common\enum;

/**
 * 自由块设置枚举类
 * Class Block
 * @package app\common\enum
 */
class Block extends EnumBasics
{
    // 图片
    const IMAGE = 10;

    // 图集
    const ALBUM = 20;

    // 文本
    const TEXT = 30;

    // 富文本
    const TEXTAREA = 40;

    /**
     * 获取自由块类型值
     * @return array
     */
    public static function data()
    {
        return [
            self::IMAGE => [
                'value' => self::IMAGE,
                'name' => '图片',
            ],
            self::ALBUM => [
                'value' => self::ALBUM,
                'name' => '图集',
            ],
            self::TEXT => [
                'value' => self::TEXT,
                'name' => '文本',
            ],
            self::TEXTAREA => [
                'value' => self::TEXTAREA,
                'name' => '富文本',
            ],
        ];
    }

}